package net.lunjin.dao.impl;

import java.math.BigDecimal;

import net.lunjin.bean.LookWant;
import net.lunjin.dao.LookWantDao;

public class LookWantDaoImpl extends MiddleAbstractDao<LookWant> implements LookWantDao {
	
	@Override
	protected Class<LookWant> getEntityClass() {
		return LookWant.class;
	}

	@Override
	public LookWant find(BigDecimal companyId, String password) throws Exception {
		String sqlString  = "select * from lookwant where orgid="+companyId+" and password='"+password+"'";
		return super.findBySqlToBean(sqlString);
	}

	
}
